<?php

declare(strict_types=1);

namespace App\Model;



/**
 * @property int $id 自增ID
 * @property string $title 广告标题
 * @property string $key 广告标识符
 * @property string $img_url 广告内容
 * @property int $status 状态：1启用，0结束
 * @property int $sort 排序
 * @property int $is_jump 是否跳转
 * @property string $jump_url 跳转地址
 * @property \Carbon\Carbon $created_at 创建时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class Banner extends Model
{
    public bool $timestamps = true;
    
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'banner';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'title', 'key', 'img_url', 'status', 'sort', 'is_jump', 'jump_url', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'status' => 'integer', 'sort' => 'integer', 'is_jump' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
